package com.hui.qiniucloud.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户登录响应DTO
 */
@Data
@Schema(description = "用户登录响应")
public class UserLoginResponse {

    @Schema(description = "访问令牌", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...")
    private String token;

    @Schema(description = "令牌类型", example = "Bearer")
    private String tokenType = "Bearer";

//    @Schema(description = "令牌过期时间（秒）", example = "7200")
//    private Long expiresIn;

    @Schema(description = "用户信息")
    private UserResponse userInfo;

    public UserLoginResponse() {}

    public UserLoginResponse(String token,  UserResponse userInfo) {
        this.token = token;
//        this.expiresIn = expiresIn;
        this.userInfo = userInfo;
    }
}